package org.budo.warehouse.web.impl;

import java.util.List;

import javax.annotation.Resource;

import org.budo.warehouse.logic.api.ILogPositionLogic;
import org.budo.warehouse.logic.entity.BinaryLogs;
import org.budo.warehouse.logic.entity.BinlogPosition;
import org.budo.warehouse.web.api.LogPositionApi;
import org.springframework.stereotype.Component;

/**
 * @author lmw
 */
@Component
public class LogPositionApiImpl implements LogPositionApi {
    @Resource
    private ILogPositionLogic logPositionLogic;

    @Override
    public List<BinaryLogs> showBinaryLogs(String destination) {
        return logPositionLogic.showBinaryLogs(destination);
    }

    @Override
    public Boolean deleteLogPosition(String destination) {
        return logPositionLogic.deleteLogPosition(destination);
    }

    @Override
    public List<BinlogPosition> listLogPosition() {
        return logPositionLogic.listLogPosition();
    }
}